package zmz.dao;

import org.apache.ibatis.annotations.Param;
import zmz.entity.Teacher;

import java.util.List;

public interface TeacherMapper {
    int deleteByPrimaryKey(Integer tid);

    int insert(Teacher record);

    int insertSelective(Teacher record);

    Teacher selectByPrimaryKey(Integer tid);

    int updateByPrimaryKeySelective(Teacher record);

    int updateByPrimaryKey(Teacher record);
    //一对多方法
    Teacher selectByPrimaryKeyWithStudent(Integer tid);

    //根据多个ID查询出对应的实体对象集合,  复杂类型参数最好要注解下：
    List<Teacher> selectByTids(@Param("tids") List<Integer> tids);

}